package com.wkk.yuli.job;

import com.wkk.utils.DateUtils;
import com.wkk.yuli.util.ToolUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author : WangKeKe
 * @date : 2020/9/25 9:30
 * Description : 定时任务 - 启动持久化
 */

@Slf4j
public class PersistenceYuLiJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        ToolUtils.pushTime();
        log.info(" 执行每秒持久化任务  时间:" + DateUtils.getTimestamp());
    }
}
